/****************************************************************************
*  Arthea Server by R. Jennings (2007-2008)   http://arthea.googlecode.com/ *
*  By using this code you comply with the Artistic and GPLv2 Licenses.      *
****************************************************************************/


namespace Arthea.Scripts.Interfaces
{
    /// <summary>
    /// Allows a type to activate a script
    /// </summary>
    public interface IScriptable
    {
        /// <summary>
        /// Gets a name for scriptable object
        /// </summary>
        string Name { get; set; }

        /// <summary>
        /// Gets a short description for scriptable object
        /// </summary>
        string ShortDescr { get; set; }

        /// <summary>
        /// Creates a script of proper type.
        /// </summary>
        /// <returns></returns>
        Script CreateScript(ScriptCode code, String trigger);
    }
}